package com.syq.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class CourseTemplateDetails implements Serializable {
    private String cotTno;

    private String cotno;

    private String cotTtitle;

    private String cotTdesc;

    private Date cotTtime;

    private String cotTstate;

    private static final long serialVersionUID = 1L;

    public String getCotTno() {
        return cotTno;
    }

    public void setCotTno(String cotTno) {
        this.cotTno = cotTno;
    }

    public String getCotno() {
        return cotno;
    }

    public void setCotno(String cotno) {
        this.cotno = cotno;
    }

    public String getCotTtitle() {
        return cotTtitle;
    }

    public void setCotTtitle(String cotTtitle) {
        this.cotTtitle = cotTtitle;
    }

    public String getCotTdesc() {
        return cotTdesc;
    }

    public void setCotTdesc(String cotTdesc) {
        this.cotTdesc = cotTdesc;
    }

    public Date getCotTtime() {
        return cotTtime;
    }

    public void setCotTtime(Date cotTtime) {
        this.cotTtime = cotTtime;
    }

    public String getCotTstate() {
        return cotTstate;
    }

    public void setCotTstate(String cotTstate) {
        this.cotTstate = cotTstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CourseTemplateDetails other = (CourseTemplateDetails) that;
        return (this.getCotTno() == null ? other.getCotTno() == null : this.getCotTno().equals(other.getCotTno()))
            && (this.getCotno() == null ? other.getCotno() == null : this.getCotno().equals(other.getCotno()))
            && (this.getCotTtitle() == null ? other.getCotTtitle() == null : this.getCotTtitle().equals(other.getCotTtitle()))
            && (this.getCotTdesc() == null ? other.getCotTdesc() == null : this.getCotTdesc().equals(other.getCotTdesc()))
            && (this.getCotTtime() == null ? other.getCotTtime() == null : this.getCotTtime().equals(other.getCotTtime()))
            && (this.getCotTstate() == null ? other.getCotTstate() == null : this.getCotTstate().equals(other.getCotTstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCotTno() == null) ? 0 : getCotTno().hashCode());
        result = prime * result + ((getCotno() == null) ? 0 : getCotno().hashCode());
        result = prime * result + ((getCotTtitle() == null) ? 0 : getCotTtitle().hashCode());
        result = prime * result + ((getCotTdesc() == null) ? 0 : getCotTdesc().hashCode());
        result = prime * result + ((getCotTtime() == null) ? 0 : getCotTtime().hashCode());
        result = prime * result + ((getCotTstate() == null) ? 0 : getCotTstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cotTno=").append(cotTno);
        sb.append(", cotno=").append(cotno);
        sb.append(", cotTtitle=").append(cotTtitle);
        sb.append(", cotTdesc=").append(cotTdesc);
        sb.append(", cotTtime=").append(cotTtime);
        sb.append(", cotTstate=").append(cotTstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}